/**
 * Created by mooshroom on 2015/3/1.
 */
require(['mmRouter'], function () {
    //首页
    avalon.router.get('/', function () {
        require(['home'],function(){
            include.url = "./body/home.html";
            modal.getOut()

        })
    });

    //文档查看页面
    avalon.router.get('/doc/:apiID', function (apiID) {
        require(['home','doc'],function(){

            doc.get(apiID);

            include.url = "./body/home.html";
            include.doc='./body/doc.html';
//            var thisW=window.innerWidth*80/100;
//            modal.getIn(thisW)
        })
    });


    avalon.history.start();
    avalon.scan();
})